import Vue from 'vue'
import Router from 'vue-router'
import Index from '../rednest/Index'
import news from '../rednest/news'
import topic from '../rednest/topic'
import topicDetails from '../rednest/topicDetails'
import technology from '../rednest/technology'
import life from '../rednest/life'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/news',
      name: 'news',
      component: news
    },
    {
      path: '/topic',
      name: 'topic',
      component: topic,
    },
    {
      path: '/topicDetails',
      name: 'topicDetails',
      component: topicDetails,
    },

    {
      path: '/technology',
      name: 'technology',
      component: technology
    },
    {
      path: '/life',
      name: 'life',
      component: life
    }
  ]
})
